package session

import (
	"OnlineRetailers/models"
)

func DestroySession(session string) (err error) {

	conn := models.Pool.Get()

	defer func() {
		err = conn.Close()
		if err != nil {

		}
	}()

	_, err = conn.Do("DEL", session)
	return

}
